package cn.lzd.controller;

import cn.lzd.bean.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by lzd on 2018/12/10.
 * <p>
 * http://localhost:7080/webdemo/hello/demo1
 */
@RestController
@RequestMapping("hello")
public class HelloWorldController {

    @RequestMapping("demo1")
    public User demo1() {
        User user = new User();
        user.setLove("我爱java");
        user.setName("Test");

        return user;
    }
}
